SUBDIRS = src
EXTRA_DIST = cvmfsd.initd cvmfsdrc
if BUILD_SERVER
dist_bin_SCRIPTS = cvmfs-sync
install-exec-hook:
	test -z "$(DESTDIR)/etc" || mkdir -p "$(DESTDIR)/etc"
	test -z "$(DESTDIR)/etc/init.d" || mkdir -p "$(DESTDIR)/etc/init.d"
	install -c -m 0644 cvmfsdrc "$(DESTDIR)/etc/cvmfsdrc"
	install -c -m 0755 cvmfsd.initd "$(DESTDIR)/etc/init.d/cvmfsd" 
endif
